package vn.igolf.gui;

import java.awt.Image;
import java.awt.geom.AffineTransform;
import java.awt.image.AffineTransformOp;
import java.awt.image.BufferedImage;

import javax.swing.ImageIcon;
import javax.swing.JComponent;

public class MapGUI extends JComponent {
	
	private int width;
	private int height;
    
    /** Returns an ImageIcon, or null if the path was invalid. */
    protected static ImageIcon createImageIcon(String path) {
//        java.net.URL imgURL = MainClass.class.getResource(path);
    	ImageIcon imageIcon = new ImageIcon (path);
    	if (imageIcon != null) {
    		Image image = imageIcon.getImage();
            return imageIcon;
        } else {
            System.err.println("Couldn't find file: " + path);
            return null;
        }
    }

}
